package com.demo.pojo.VO;

import java.util.Date;
import java.util.List;

public class VOMenu {
    private Integer id;
    private List<VOMenu>  parent; // 子对象数组
    private String name;
    private Integer type;   // 类型 0目录1菜单2按钮，不知道怎么用先留着
    private String path;
    private String component;
    private String perms;
    private String icon;
    private Integer sortValue;
    private int status;
    private Date createTime;

    @Override
    public String toString() {
        return "VOMenu{" +
                "id=" + id +
                ", parent=" + parent +
                ", name='" + name + '\'' +
                ", type=" + type +
                ", path='" + path + '\'' +
                ", component='" + component + '\'' +
                ", perms='" + perms + '\'' +
                ", icon='" + icon + '\'' +
                ", sortValue=" + sortValue +
                ", status=" + status +
                ", createTime=" + createTime +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public List<VOMenu> getParent() {
        return parent;
    }

    public void setParent(List<VOMenu> parent) {
        this.parent = parent;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public String getPerms() {
        return perms;
    }

    public void setPerms(String perms) {
        this.perms = perms;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getSortValue() {
        return sortValue;
    }

    public void setSortValue(Integer sortValue) {
        this.sortValue = sortValue;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public VOMenu() {
    }

    public VOMenu(Integer id, List<VOMenu> parent, String name, Integer type, String path, String component, String perms, String icon, Integer sortValue, int status, Date createTime) {
        this.id = id;
        this.parent = parent;
        this.name = name;
        this.type = type;
        this.path = path;
        this.component = component;
        this.perms = perms;
        this.icon = icon;
        this.sortValue = sortValue;
        this.status = status;
        this.createTime = createTime;
    }
}
